package com.donglan.pethome.user.service;

import com.donglan.pethome.user.domain.vo.UserVo;

import java.util.Map;

/**
 * @Author: zhangdonghui
 * @Date: 2022/1/21 13:31
 */
public interface WechatService {
    /*
     * 功能描述 通过授权码获取token
     * @author zhangdonghui
     * @date 2022/1/21 13:31
     * @param code 授权码
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    Map<String, Object> handleCallBack(String code);

    /*
     * 功能描述 让微信绑定用户
     * @author zhangdonghui
     * @date 2022/1/21 23:23
     * @param userVo 【用户名username，密码password，openid】
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    Map<String, Object> binder(UserVo userVo);
}
